package com.sysmanage.etl.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {
	private static Properties properties = new Properties();
	
	static {
		InputStream in = null;
		try {
			in = PropertiesUtils.class.getClassLoader().getResourceAsStream("init.properties");
			properties.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				if (in != null)
					in.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
	
	public static String getProperty(String key) {
		return properties.getProperty(key);
	}
}
